import { Controller, Get, Inject } from '@nestjs/common';
import { DynamicModuleService } from './dynamic-module.service';

@Controller('api/dynamic-module')
export class DynamicModuleController {
  constructor(
    private readonly dynamicModuleService: DynamicModuleService,
    @Inject('CONFIG_OPTIONS') private options: Record<string, any>,
  ) {}

  @Get()
  findAll() {
    return this.options;
  }
}
